#include <bits/stdc++.h>
using namespace std;
int n,q;
string s[1000010];
string t[1000010];
int main()
{
	freopen("replace.in","r",stdin);
	freopen("replace.out","w",stdout);
	cin>>n>>q;
	for(int i=1;i<=n;i++)
	{
		cin>>s[i];
	}
	for(int i=1;i<=q;i++)
	{
		cin>>t[i];
	}
	cout<<2<<endl<<0;
	return 0;
}
